#include <QCoreApplication>
#include <iostream>
#include <QDebug>

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    int age = 0;
    qInfo()<<"Enter your age";
    std::cin>>age;

    qInfo()<<"You are:"<<age<<"years old.";

    qInfo()<<"Information";
    qWarning()<<"Warning";
    qDebug()<<"Debug";
    qCritical()<<"Critical";
    //qFatal("Test Crash!!");

    return a.exec();
}
